package com.tancire.works.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 兼职类型对象 side_work_type
 *
 * @author tancire
 * @date 2024-03-02
 */
public class SideWorkType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 父分类
     */
    @Excel(name = "父分类")
    private Long pid;

    /**
     * 层级
     */
    @Excel(name = "层级")
    private Integer levels;

    /**
     * 类型名
     */
    @Excel(name = "类型名")
    private String typeName;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer typeSort;

    /**
     * 状态 0 正常 1 停用
     */
    @Excel(name = "状态 0 正常 1 停用")
    private Integer typeStatus;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Long getPid() {
        return pid;
    }

    public void setLevels(Integer levels) {
        this.levels = levels;
    }

    public Integer getLevels() {
        return levels;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeSort(Integer typeSort) {
        this.typeSort = typeSort;
    }

    public Integer getTypeSort() {
        return typeSort;
    }

    public void setTypeStatus(Integer typeStatus) {
        this.typeStatus = typeStatus;
    }

    public Integer getTypeStatus() {
        return typeStatus;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pid", getPid())
                .append("levels", getLevels())
                .append("typeName", getTypeName())
                .append("typeSort", getTypeSort())
                .append("typeStatus", getTypeStatus())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
